package com.guchenbo.spring.boot.jdbc.mybatis;


import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
 * @Author guchenbo
 * @Date 2019/8/15.
 */
@Mapper
public interface UserMapper {

    @Insert("insert into user(`name`, age) values (#{user.name}, #{user.age})")
    void insert(@Param("user") User user);
}
